//
import Vue from 'vue'
import {
  extend,
  ValidationProvider,
  ValidationObserver

} from 'vee-validate'

import * as rules from 'vee-validate/dist/rules'
import zh_CN from './locale/zh_CN'

for (let rule in rules) {
  extend(rule, {
    ...rules[rule],
    message: zh_CN.messages[rule]
  })
}

Vue.component('VeeValidator', ValidationProvider)
Vue.component('VeeObserver', ValidationObserver)
